package overall.message.room
{
	import flash.utils.ByteArray;
	
	import xnet.Message.ISokcetMessage;
	import xnet.Message.MessageBase;
	
	public class RoomBroadcastMsg extends MessageBase
	{
		public function RoomBroadcastMsg()
		{
			super();
		}
		
		public var token:String;
		public var content:String;
		public var playerId:int;
		public var playerName:String;
		public var tableId:int;
		public var pos:int;
		public var status:int;
		public var roomUserNum:int;
		override public function decodeSocketData(byteArray:ByteArray):ISokcetMessage
		{
			type = byteArray.readByte();
			token=byteArray.readUTF();
			content=byteArray.readUTF();
			playerId=byteArray.readInt();
			playerName=byteArray.readUTF();
			tableId=byteArray.readInt();
			pos=byteArray.readInt();
			status=byteArray.readInt();
			roomUserNum=byteArray.readInt();
			return this;
		}
	}
}